package com.xm.share.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xm.share.model.Pictureshare;
import com.xm.share.model.vo.NoticeData;

public interface PictureshareMapper {

	int deleteByPrimaryKey(Long id);

	int insert(Pictureshare record);

	int insertSelective(Pictureshare record);

	Pictureshare selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Pictureshare record);

	int updateByPrimaryKey(Pictureshare record);

	int updateCommentNum(Long id);

	List<Pictureshare> findPagedPicture(int begin, int end);

	List<Pictureshare> findPictureShare(@Param("con") String condition, @Param("type") String order);

	List<Pictureshare> findByUserId(long userId);

	List<NoticeData> queryTopMsg();

	NoticeData queryTopMsgByuserId(String userId);

	void setRead(long id);
}